<template>
  <div class="app-container">
    <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="74px">
      <el-form-item label="招标编号" prop="sectionId">
        <el-input v-model="queryParams.sectionId" placeholder="请输入招标编号" clearable @clear="handleQuery"  @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="招标名称" prop="sectionName">
        <el-input v-model="queryParams.sectionName" placeholder="请输入招标名称" clearable @clear="handleQuery"  @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="开标时间" prop="open">
        <el-date-picker clearable @clear="handleQuery" v-model="queryParams.open" type="date" value-format="yyyy-MM-dd" @change="handleQuery" placeholder="请选择开标时间"></el-date-picker>
      </el-form-item>
      <el-form-item label="招标进度" prop="sectionProgress">
        <el-select v-model="queryParams.sectionProgress" placeholder="请选择招标进度" clearable @clear="handleQuery" @change="handleQuery">
          <el-option
            v-for="dict in dict.type.section_progress"
            :key="dict.value"
            :label="dict.label"
            :value="Number(dict.value)">
          </el-option>
        </el-select>
      </el-form-item>
      <el-form-item>
        <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
        <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
      </el-form-item>
    </el-form>

    <el-row :gutter="10" class="mb8">
      <el-col :span="1.5">
        <el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport" v-hasPermi="['system:archive:export']">导出</el-button>
      </el-col>
      <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
    </el-row>

    <el-table v-loading="loading" :data="sectionList" border>
      <el-table-column label="序号" type="index" fixed width="55" align="center" />
      <el-table-column label="部门" fixed align="center" prop="projectInfo.deptName" show-overflow-tooltip />
      <el-table-column label="项目负责人" fixed align="center" prop="projectInfo.assistant"  width="120" show-overflow-tooltip />
      <el-table-column label="招标编号" align="center" prop="sectionId"  width="120" show-overflow-tooltip>
        <template slot-scope="scope">
          <span @dblclick="copyText(scope.row.sectionId)">{{ scope.row.sectionId }}</span>
        </template>
      </el-table-column>
      <el-table-column label="招标名称" align="center" prop="sectionName"  width="180" show-overflow-tooltip>
        <template slot-scope="scope">
          <span @dblclick="copyText(scope.row.sectionName)">{{ scope.row.sectionName }}</span>
        </template>
      </el-table-column>
      <el-table-column label="组织方式" align="center"  width="180">
        <template slot-scope="scope">
          <span>{{ selectDictLabel(dict.type.sys_bidmethos, scope.row.bidmethod) }}</span>
          <!-- <dict-tag :options="dict.type.sys_bidmethos" :value="scope.row.bidmethod"/> -->
        </template>
      </el-table-column>
      <el-table-column label="招标类别" align="center" prop="qualify" width="100" show-overflow-tooltip>
        <template slot-scope="scope">
          <span>{{ selectDictLabel(dict.type.sys_bidcategory, scope.row.projectInfo.bidcategory) }}</span>
        </template>
      </el-table-column>
      <el-table-column label="是否电子标" align="center" prop="qualify" width="100" show-overflow-tooltip>
        <template slot-scope="scope">
          <!-- <dict-tag :options="dict.type.is_switch" :value="scope.row.online"/> -->
          <span :style="{color:scope.row.online === 1 ? '#409EFF' : '#F56C6C' }">{{ selectDictLabel(dict.type.is_switch, scope.row.online) }}</span>
        </template>
      </el-table-column>

      <el-table-column label="开标时间" align="center" prop="open" width="160" show-overflow-tooltip>
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.open, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="招标进度" align="center" width="120" show-overflow-tooltip>
        <template slot-scope="scope">
          <el-tag :type="scope.row.sectionProgress === 8 || scope.row.sectionProgress === 9 ? 'danger' : (scope.row.sectionProgress === 7 ? 'success' : '' )">{{ selectDictLabel(dict.type.section_progress, scope.row.sectionProgress) }}</el-tag>
        </template>
      </el-table-column>
      <el-table-column label="中标单位" align="center" width="140" show-overflow-tooltip>
        <template slot-scope="scope">
          <span>{{ scope.row.winCompany }}</span>
        </template>
      </el-table-column>
      <el-table-column label="中标金额" align="center" width="140" show-overflow-tooltip>
        <template slot-scope="scope">
          <span v-if="scope.row.preMoney">{{ scope.row.preMoney }} 元</span>
        </template>
      </el-table-column>

      <el-table-column label="应归档时间" align="center" prop="filRealduetime" width="160" show-overflow-tooltip>
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.filDuetime, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>

      <el-table-column label="归档时间" align="center" prop="filRealduetime" width="160" show-overflow-tooltip>
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.filRealduetime, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="应上架时间" align="center" prop="filRealduetime" width="160" show-overflow-tooltip>
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.filShelftime, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="上架时间" align="center" prop="filRealshelftime" width="160" show-overflow-tooltip>
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.filRealshelftime, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="档案号" align="center" prop="filNum" width="160" show-overflow-tooltip />
      <el-table-column label="操作" fixed="right" width="140" align="center" class-name="small-padding fixed-width">
        <template slot-scope="scope">
          <el-button
            size="mini"
            type="text"
            icon="el-icon-folder-opened"
            v-if="scope.row.sectionProgress >= 5"
            @click="handleOpenDialog(scope.row, 'file')"
            v-hasPermi="['system:archive:file']"
          >归档</el-button>
          <el-button
            size="mini"
            type="text"
            icon="el-icon-folder-checked"
            v-if="scope.row.sectionProgress >= 6"
            @click="handleOpenDialog(scope.row, 'stack')"
            v-hasPermi="['system:archive:stack']"
          >上架</el-button>
        </template>
      </el-table-column>
    </el-table>

    <pagination
      v-show="total > 0"
      :total="total"
      :page.sync="queryParams.pageNum"
      :limit.sync="queryParams.pageSize"
      @pagination="getList"
    />

    <!-- 查看 -->
    <el-dialog class="section-detail-dialog" :title="sectionDetail.title" :visible.sync="sectionDetail.open" width="70%" append-to-body :close-on-click-modal="false">
      <el-row>
        <el-col :span="23">
          <el-tabs type="border-card"  v-model="sectionDetail.tabName">
            <el-tab-pane label="所属项目" name="project">
              <el-form ref="sectionForm" :model="sectionDetail.projectInfo" label-width="96px">
                <el-row>
                  <el-col :span="7">
                    <el-form-item label="部门名称:">
                      <span>{{ sectionDetail.projectInfo.deptName }}</span>
                    </el-form-item>
                  </el-col>
                  <el-col :span="7" :offset="1">
                    <el-form-item label="项目编号:">
                      <span>{{ sectionDetail.projectInfo.pid }}</span>
                    </el-form-item>
                  </el-col>
                  <el-col :span="7" :offset="1">
                    <el-form-item label="项目名称:">
                      <span>{{ sectionDetail.projectInfo.pname }}</span>
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row>
                  <el-col :span="7">
                    <el-form-item label="所属板块:">
                      <span>{{ sectionDetail.projectInfo.plateName }}</span>
                    </el-form-item>
                  </el-col>
                  <el-col :span="7" :offset="1">
                    <el-form-item label="委托单位:">
                      <span>{{ sectionDetail.projectInfo.clientName }}</span>
                    </el-form-item>
                  </el-col>
                  <el-col :span="7" :offset="1">
                    <el-form-item label="资金来源:">
                      <dict-tag :options="dict.type.sys_nego_source" :value="sectionDetail.projectInfo.sourcefunds"/>
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row>
                  <el-col :span="7">
                    <el-form-item label="部门负责人:">
                      <span>{{ sectionDetail.projectInfo.leader }}</span>
                    </el-form-item>
                  </el-col>
                  <el-col :span="7" :offset="1">
                    <el-form-item label="项目负责人:">
                      <span>{{ sectionDetail.projectInfo.assistant }}</span>
                    </el-form-item>
                  </el-col>
                  <el-col :span="7" :offset="1">
                    <el-form-item label="甲方负责人:">
                      <span>{{ sectionDetail.projectInfo.jf }}</span>
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row>
                  <el-col :span="7">
                    <el-form-item label="甲方联系电话:" title="甲方联系电话">
                      <span>{{ sectionDetail.projectInfo.jfPhone }}</span>
                    </el-form-item>
                  </el-col>
                  <el-col :span="7" :offset="1">
                    <el-form-item label="备案号:">
                      <span>{{ sectionDetail.projectInfo.recordid ? sectionDetail.projectInfo.recordid : '无' }}</span>
                    </el-form-item>
                  </el-col>
                  <el-col :span="7" :offset="1">
                    <el-form-item label="备案时间:">
                      <span>{{ sectionDetail.projectInfo.recordTime ? sectionDetail.projectInfo.recordTime : '无' }}</span>
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row>
                  <el-col :span="7">
                    <el-form-item label="委托时间:">
                      <span>{{ sectionDetail.projectInfo.clientTime }}</span>
                    </el-form-item>
                  </el-col>
                  <el-col :span="7" :offset="1">
                    <el-form-item label="组织方式:">
                      <dict-tag :options="dict.type.sys_bidmethos" :value="sectionDetail.projectInfo.bidmethod"/>
                    </el-form-item>
                  </el-col>
                  <el-col :span="7" :offset="1">
                    <el-form-item label="招标类别:">
                      <dict-tag :options="dict.type.sys_bidcategory" :value="sectionDetail.projectInfo.bidcategory"/>
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row>
                  <el-col :span="7">
                    <el-form-item label="工程类别:">
                      <dict-tag v-if="sectionDetail.projectInfo.enginer" :options="dict.type.sys_enginer" :value="sectionDetail.projectInfo.enginer"/>
                      <span v-else>无</span>
                    </el-form-item>
                  </el-col>
                  <el-col :span="7" :offset="1">
                    <el-form-item label="估算金额:">
                      <span>{{ sectionDetail.projectInfo.planprice }}</span> 元
                    </el-form-item>
                  </el-col>
                  <el-col :span="7" :offset="1">
                    <el-form-item label="是否外揽:">
                      <dict-tag :options="dict.type.is_switch" :value="sectionDetail.projectInfo.decide"/>
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row>
                  <el-col :span="7">
                    <el-form-item label="是否依法:">
                      <dict-tag :options="dict.type.is_switch" :value="sectionDetail.projectInfo.law"/>
                    </el-form-item>
                  </el-col>
                  <el-col :span="7" :offset="1">
                    <el-form-item label="控制价:">
                      <span>{{ sectionDetail.projectInfo.controlprice }}</span> 元
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row>
                  <el-col :span="23">
                    <el-form-item label="招标范围或主要技术参数:" title="招标范围或主要技术参数">
                      <span>{{ sectionDetail.projectInfo.tcpa }}</span>
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row>
                  <el-col :span="23">
                    <el-form-item label="备注:">
                      <span>{{ sectionDetail.projectInfo.remark ? sectionDetail.projectInfo.remark : '无' }}</span>
                    </el-form-item>
                  </el-col>
                </el-row>
              </el-form>
            </el-tab-pane>
            <el-tab-pane label="标段信息" name="section">
              <el-form ref="sectionForm" :model="sectionDetail.form" label-width="96px">
                <el-row>
                  <el-col :span="7">
                    <el-form-item label="招标编号:">
                      <span>{{ sectionDetail.form.sectionId }}</span>
                    </el-form-item>
                  </el-col>
                  <el-col :span="7" :offset="1">
                    <el-form-item label="招标名称:">
                      <span>{{ sectionDetail.form.sectionName }}</span>
                   </el-form-item>
                  </el-col>
                  <el-col :span="7" :offset="1">
                    <el-form-item label="组织方式:">
                      <dict-tag :options="dict.type.sys_bidmethos" :value="sectionDetail.form.bidmethod"/>
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row>
                  <el-col :span="7">
                    <el-form-item label="评标办法:">
                      <dict-tag :options="dict.type.sys_bidway" :value="sectionDetail.form.bidway"/>
                    </el-form-item>
                  </el-col>
                  <el-col :span="15" :offset="1">
                    <el-form-item label="资质设置:">
                      <span>{{ sectionDetail.form.qualify }}</span>
                   </el-form-item>
                  </el-col>
                </el-row>
                <el-row>
                  <el-col :span="7">
                    <el-form-item label="公告开始时间:" title="公告开始时间">
                      <span>{{ sectionDetail.form.annBengin }}</span>
                    </el-form-item>
                  </el-col>
                  <el-col :span="7" :offset="1">
                    <el-form-item label="公告截止时间:" title="公告截止时间">
                      <span>{{ sectionDetail.form.annEnd }}</span>
                   </el-form-item>
                  </el-col>
                  <el-col :span="7" :offset="1">
                    <el-form-item label="开标时间:">
                      <span>{{ sectionDetail.form.open }}</span>
                   </el-form-item>
                  </el-col>
                </el-row>
                <el-row>
                  <el-col :span="7">
                    <el-form-item label="开标地点:">
                      <dict-tag :options="dict.type.sys_openarea" :value="sectionDetail.form.openArea"/>
                    </el-form-item>
                  </el-col>
                  <el-col :span="7" :offset="1">
                    <el-form-item label="估算金额:">
                      <span>{{ sectionDetail.form.planprice }}</span> 元
                   </el-form-item>
                  </el-col>
                  <el-col :span="7" :offset="1">
                    <el-form-item label="是否电子标:">
                      <dict-tag :options="dict.type.is_switch" :value="sectionDetail.form.online"/>
                   </el-form-item>
                  </el-col>
                </el-row>
              </el-form>
            </el-tab-pane>
            <el-tab-pane label="投标信息" name="tender">
              <el-table :data="sectionDetail.form.tenderList" max-height="500">
                <el-table-column label="序号" type="index" width="55" align="center" />
                <el-table-column label="投标单位名称" align="center" prop="tname"  show-overflow-tooltip width="130"/>
                <el-table-column label="投标金额" align="center" prop="tprice"  show-overflow-tooltip width="140"/>
                <el-table-column label="是否中标" align="center" prop="state"  show-overflow-tooltip width="120">
                  <template slot-scope="scope">
                    <el-tag :type="scope.row.state == 2 ? 'danger' : 'success'">
                      <dict-tag :options="dict.type.is_switch" :value="scope.row.state"/>
                    </el-tag>
                  </template>
                </el-table-column>
                <el-table-column label="备注" align="center" prop="remark"  show-overflow-tooltip>
                  <template slot-scope="scope">
                    <span v-if="scope.row.remark">{{ scope.row.remark }}</span>
                    <span v-else>暂无备注</span>
                  </template>
                </el-table-column>
              </el-table>
            </el-tab-pane>
          </el-tabs>
        </el-col>
      </el-row>
      <div slot="footer" class="dialog-footer">
        <el-button type="primary" @click="sectionDetailCancel">确 定</el-button>
        <el-button @click="sectionDetailCancel">取 消</el-button>
      </div>
    </el-dialog>

    <!-- 归档 -->
    <el-dialog :title="fileDialog.title" :visible.sync="fileDialog.open" width="30%" append-to-body :close-on-click-modal="false">
      <el-form :model="fileForm" :rules="fileRules" ref="fileFormRef" label-width="78px" class="demo-ruleForm">
        <el-form-item label="归档时间" prop="filRealduetime">
          <el-date-picker clearable
            v-model="fileForm.filRealduetime"
            type="date"
            format="yyyy-MM-dd"
            value-format="yyyy-MM-dd"
            placeholder="请选择归档时间">
          </el-date-picker>
        </el-form-item>
      </el-form>
      <div slot="footer" class="dialog-footer">
        <el-button type="primary" @click="submitForm">确 定</el-button>
        <el-button @click="fileDialog.open = false">取 消</el-button>
      </div>
    </el-dialog>

    <!-- 上架 -->
    <el-dialog :title="stackDialog.title" :visible.sync="stackDialog.open" width="30%" append-to-body :close-on-click-modal="false">
      <el-form :model="stackForm" :rules="stackRules" ref="stackFormRef" label-width="78px" class="demo-ruleForm">
        <el-form-item label="档案号" prop="filNum">
          <el-input
            placeholder="请输入档案号"
            v-model="stackForm.filNum"
            clearable>
          </el-input>
        </el-form-item>
        <el-form-item label="上架时间" prop="filRealshelftime">
          <el-date-picker clearable
            v-model="stackForm.filRealshelftime"
            type="date"
            format="yyyy-MM-dd"
            value-format="yyyy-MM-dd"
            placeholder="请选择上架时间">
          </el-date-picker>
        </el-form-item>
      </el-form>
      <div slot="footer" class="dialog-footer">
        <el-button type="primary" @click="submitStackForm">确 定</el-button>
        <el-button @click="stackDialog.open = false">取 消</el-button>
      </div>
    </el-dialog>

  </div>
</template>

<script>
import { listSection, getSection, updateSection } from "@/api/projectManage/sectionList";
export default {
  name: "Section",
  dicts: ['sys_bidmethos', 'sys_openarea', 'sys_bidway', 'is_switch', 'section_progress', 'sys_bidcategory'],
  data() {
    return {
      // 遮罩层
      loading: true,
      // 选中数组
      ids: [],
      // 非单个禁用
      single: true,
      // 非多个禁用
      multiple: true,
      // 显示搜索条件
      showSearch: true,
      // 总条数
      total: 0,
      // 标段列表表格数据
      sectionList: [],
      // 是否显示预定标
      reserveOpen: false,
      // 是否显示定标
      formalOpen: false,
      // 查询参数
      queryParams: {
        pageNum: 1,
        pageSize: 10,
        sectionId: null,
        sectionName: null,
        bidmethod: null,
        qualify: null,
        annBengin: null,
        annEnd: null,
        open: null,
        openArea: null,
        bidway: null,
        planprice: null,
        online: null
      },
      // 标段详情
      sectionDetail: {
        tabName: 'project',
        open: false,
        title: '标段详情',
        form: {},
        projectInfo: {}
      },
      fileDialog: {
        title: '',
        open: false
      },
      // 归档表单
      fileForm: {
        id: null,
        filRealduetime: null,
        sectionProgress: 6
      },
      fileRules: {
        filRealduetime: [
          { required: true, message: '请选择归档时间', trigger: 'change' }
        ]
      },
      stackDialog: {
        title: '',
        open: false
      },
      // 上架表单
      stackForm: {
        id: null,
        filNum: null,
        filRealshelftime: null,
        sectionProgress: 7
      },
      stackRules: {
        filNum: [
          { required: true, message: '请输入档案号', trigger: 'blur' }
        ],
        filRealshelftime: [
          { required: true, message: '请选择上架时间', trigger: 'change' }
        ]
      }
    };
  },
  created() {
    this.getList();
  },
  methods: {
    /** 查询标段列表列表 */
    getList() {
      this.loading = true;
      listSection(this.queryParams).then(response => {
        this.sectionList = response.rows;
        this.total = response.total;
        this.loading = false;
      });
    },
    /** 搜索按钮操作 */
    handleQuery() {
      this.queryParams.pageNum = 1;
      this.getList();
    },
    /** 重置按钮操作 */
    resetQuery() {
      this.resetForm("queryForm");
      this.handleQuery();
    },
    /** 导出按钮操作 */
    handleExport() {
      this.download('system/section/export', {
        ...this.queryParams
      }, `section_${new Date().getTime()}.xlsx`)
    },
    async handleOpenDialog(row, flag) {
      const res = await this.handleDetail(row)
      console.log(res)
      if (res.code === 200) {
        if (flag === 'file') {
          this.reset()
          this.fileForm.id = row.id
          this.fileDialog.title = '归档'
          this.fileDialog.open = true
          Object.assign(this.fileForm, { id: res.data.id, filRealduetime: res.data.filRealduetime });
        } else {
          this.resetStack()
          this.stackForm.id = row.id
          this.stackDialog.title = '上架'
          this.stackDialog.open = true
          Object.assign(this.stackForm, { id: res.data.id, filNum: res.data.filNum, filRealshelftime: res.data.filRealshelftime })
        }
      } else {
        this.$modal.msgError('获取详情失败')
      }
      
      
    },
    handleDetail(row) {
      return new Promise((resolve, reject) => {
        getSection(row.id).then(response => {
          if (response.code == 200) {
            resolve(response)
          } else {
            reject(response)
          }
        })
      })
    },
    sectionDetailCancel() {
      this.sectionDetail.tabName = 'project'
      this.sectionDetail.form = {}
      this.sectionDetail.projectInfo = {}
      this.sectionDetail.open = false
    },
    async copyText(textToCopy) {
      // navigator clipboard 需要https等安全上下文
      if (navigator.clipboard && window.isSecureContext) {
        // navigator clipboard 向剪贴板写文本
        navigator.clipboard.writeText(textToCopy).then(() => {
          this.$modal.msgSuccess('复制成功！')
        })
      } else {
        // 创建text area
        let textArea = document.createElement("textarea");
        textArea.value = textToCopy;
        // 使text area不在viewport，同时设置不可见
        textArea.style.position = "absolute";
        textArea.style.opacity = '0';
        textArea.style.left = "-999999px";
        textArea.style.top = "-999999px";
        document.body.appendChild(textArea);
        textArea.focus();
        textArea.select();
        let res = new Promise((res, rej) => {
          res(() => {
            document.execCommand('copy')
            textArea.remove();
          })
          rej(false)
        })
        res.then(res => {
          res();
          this.$modal.msgSuccess('复制成功！')
        }).catch(error => {
          this.$modal.msgError('复制失败！')
        })
      }
    },
    // 表单重置
    reset() {
      this.reserveForm = {
        id: null,
        filRealduetime: null,
        sectionProgress: 6
      };
      this.resetForm("fileFormRef");
    },
    resetStack() {
      this.stackForm = {
        id: null,
        filNum: null,
        filRealshelftime: null,
        sectionProgress: 7
      };
      this.resetForm("stackFormRef");
    },
    submitForm() {
      this.$refs['fileFormRef'].validate(async valid => {
        if (valid) {
          const res = await updateSection(this.fileForm)
          if (res.code == 200) {
            this.$modal.msgSuccess('归档成功')
          } else {
            this.$modal.msgError('归档失败')
          }
          this.reset()
          this.getList()
          this.fileDialog.open = false
        } else {
          this.$modal.msgWarning('请完善归档信息！')
          return false
        }
      })
    },
    submitStackForm() {
      this.$refs['stackFormRef'].validate(async valid => {
        if (valid) {
          const res = await updateSection(this.stackForm)
          if (res.code == 200) {
            this.$modal.msgSuccess('上架成功')
          } else {
            this.$modal.msgError('上架失败')
          }
          this.reset()
          this.getList()
          this.stackDialog.open = false
        } else {
          this.$modal.msgWarning('请完善上架信息！')
          return false
        }
      })
    }
  }
};
</script>

<style lang="scss" scoped>
::v-deep .el-dialog{
  .el-date-editor, .el-input, .el-select {
    width: 100%;
  }
  .el-dialog__body {
    // padding: 30px 10px 30px 30px;
  }
  .el-form-item__label {
    max-width: 100px; /* 你可以根据需要调整这个值 */
    white-space: nowrap; /* 防止文字换行 */
    overflow: hidden; /* 超出部分隐藏 */
    text-overflow: ellipsis; /* 文字溢出时显示省略号 */
  }
  .is-disabled{
    .el-textarea__inner, .el-input__inner {
      color: #333333;
    }
    .el-radio__label {
      color: #333333;
    }
    .el-radio__inner {
      border-color: #333333;
      &::after {
        background: #333333;
      }
    }
  }
  .pirce {
    width: 94%;
  }
}
.section-dialog {
  ::v-deep .el-dialog {
    .el-dialog__body {
      padding-top: 10px;
      padding-right: 20px;
      padding-left: 20px;
      padding-bottom: 20px;
    }
    .el-card {
      margin-top: 10px;
    }
    .el-table {
      .el-table__body-wrapper {
        &::-webkit-scrollbar {
          width: 0;
        }
      }
    }
  }
}

</style>
